const Mock = require('mockjs')

let id = Mock.mock('@id')

let obj = Mock.mock({
    id: "@id()",    // 随机生成id
    username: "@cname()",   // 随机生成中文名字
    date: "@date()",    // 随机生成日期
    avatar: "@image('200x200', 'red', '#fff', 'avatar')",   // 随机生成图片
    description: "@paragraph",  // 随机生成描述
    ip: "@ip()",    // 随机生成IP地址
    email: "@email()"   // 随机生成email
})

console.log(obj);